package core;

import gitobject.Commit;
import gitobject.Head;

public class JitLog {
    public static void log() throws Exception {
        Head head = Head.deserialize();
        String ref = head.getKey();

        while (ref != null) {
            Commit commit = Commit.deserialize(ref);
            System.out.println(commit.getValue());
            System.out.println("\n\n\n");
            ref = commit.getParent();
        }

    }

}
